import { Global, Module } from '@nestjs/common';
import { DbService } from './db.service';
import { MemberRepositoryModule } from '@app/db/common/member-repository/member-repository.module';
import { MerchantRepositoryModule } from '@app/db/merchant-repository/merchant-repository.module';
import { MenuRepositoryModule } from '@app/db/common/menu-repository/menu-repository.module';
import { RoleRepositoryModule } from '@app/db/common/role-repository/role-repository.module';
import { DictionaryCategoryRepositoryModule } from '@app/db/common/dictionary-category-repository/dictionary-category-repository.module';
import { DictionaryItemRepositoryModule } from '@app/db/common/dictionary-item-repository/dictionary-item-repository.module';
import { DeviceTypeRepositoryModule } from '@app/db/device-type-repository/device-type-repository.module';
import { DeviceRepositoryModule } from '@app/db/device-repository/device-repository.module';
import { DeviceParamsFieldRepositoryModule } from '@app/db/device-params-field-repository/device-params-field-repository.module';
import { DeviceParamsRepositoryModule } from '@app/db/device-params-repository/device-params-repository.module';

@Global()
@Module({
  imports : [
    MemberRepositoryModule,
    MenuRepositoryModule,
    RoleRepositoryModule,
    DictionaryCategoryRepositoryModule,
    DictionaryItemRepositoryModule,

    MerchantRepositoryModule,
    DeviceTypeRepositoryModule,
    DeviceRepositoryModule,
    DeviceParamsFieldRepositoryModule,
    DeviceParamsRepositoryModule,
  ],
  providers: [DbService],
  exports : [DbService]
})
export class DbModule {}
